package org.dbwebx.flex.utils
{
	import com.asfusion.mate.events.Dispatcher;
	import com.asfusion.mate.utils.debug.Logger;
	
	import flash.events.Event;
	
	import mx.logging.ILogger;
	import mx.logging.Log;
	
	/**
	 * The event dispatcher helper. 
	 * @author Izzet_Mustafayev
	 * 
	 */
	public final class EventDispatcher
	{
		private static var LOG:ILogger = Log.getLogger("org.dbwebx.flex.utils.EventDispatcher");
		
		public static function dispatcheEvent(evt:Event):void
		{	
			if(null == evt){
				LOG.error("Event was not specified");
			}
			
			if(null != evt){
				var dispatcher:Dispatcher = new Dispatcher();
				dispatcher.dispatchEvent(evt);
			}
		}

	}
}